'use strict'

/**
 * H5
 */
module.exports = (app) => {
  const { router, controller, middleware } = app
  const { jwtAuth } = middleware.auth
  const { config } = app
  const { datav } = controller

  const prefix = `/datav/nj`

  /**
   * 中间件
   */
  // router.use(`${prefix}`, middleware.requestLog()) // 请求日志
  router.use(`${prefix}`, middleware.api) //  Api请求拦截器(错误、异常)

  router.get(`${prefix}/data`, datav.data.index) // 模块数据
}
